package view;

import java.awt.BorderLayout;
import java.awt.EventQueue;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import javax.swing.JTabbedPane;
import javax.swing.JLabel;
import javax.swing.JTextField;
import javax.swing.JButton;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;
import javax.swing.JComboBox;
import javax.swing.DefaultComboBoxModel;

public class KlasInterface extends JFrame {

	private JPanel contentPane;
	private JTextField textField;
	private JTextField textField_1;
	private JTextField textField_2;
	private JTextField textField_3;
	private JTextField textField_4;
	private JTextField textField_5;
	private JTextField textField_6;
	private JTextField textField_7;
	private JTextField textField_8;
	private JTextField textField_9;

	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					KlasInterface frame = new KlasInterface();
					frame.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

	/**
	 * Create the frame.
	 */
	public KlasInterface() {
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		setBounds(100, 100, 450, 300);
		contentPane = new JPanel();
		contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
		setContentPane(contentPane);
		contentPane.setLayout(null);
		
		JTabbedPane tabbedPane = new JTabbedPane(JTabbedPane.TOP);
		tabbedPane.setBounds(0, 0, 434, 261);
		contentPane.add(tabbedPane);
		
		JPanel panel = new JPanel();
		tabbedPane.addTab("Klas Aanmaken", null, panel, null);
		panel.setLayout(null);
		
		JLabel lblNewLabel = new JLabel("Cohort");
		lblNewLabel.setBounds(10, 11, 58, 14);
		panel.add(lblNewLabel);
		
		JLabel lblOpleidingnaam = new JLabel("Opleidingnaam");
		lblOpleidingnaam.setBounds(10, 36, 87, 14);
		panel.add(lblOpleidingnaam);
		
		JLabel lblNiveau = new JLabel("Niveau");
		lblNiveau.setBounds(10, 61, 58, 14);
		panel.add(lblNiveau);
		
		JLabel lblJaar = new JLabel("Jaar");
		lblJaar.setBounds(10, 86, 58, 14);
		panel.add(lblJaar);
		
		JLabel lblMentor = new JLabel("Mentor");
		lblMentor.setBounds(10, 111, 58, 14);
		panel.add(lblMentor);
		
		textField = new JTextField();
		textField.setBounds(117, 8, 115, 20);
		panel.add(textField);
		textField.setColumns(10);
		
		textField_1 = new JTextField();
		textField_1.setColumns(10);
		textField_1.setBounds(117, 33, 115, 20);
		panel.add(textField_1);
		
		textField_2 = new JTextField();
		textField_2.setColumns(10);
		textField_2.setBounds(117, 58, 115, 20);
		panel.add(textField_2);
		
		textField_3 = new JTextField();
		textField_3.setColumns(10);
		textField_3.setBounds(117, 83, 115, 20);
		panel.add(textField_3);
		
		textField_4 = new JTextField();
		textField_4.setColumns(10);
		textField_4.setBounds(117, 108, 115, 20);
		panel.add(textField_4);
		
		JButton btnNewButton = new JButton("Klas Aanmaken");
		btnNewButton.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent arg0) {
			}
		});
		btnNewButton.setBounds(10, 199, 200, 23);
		panel.add(btnNewButton);
		
		JButton btnAnnuleren = new JButton("Annuleren");
		btnAnnuleren.setBounds(219, 199, 200, 23);
		panel.add(btnAnnuleren);
		
		JPanel panel_1 = new JPanel();
		tabbedPane.addTab("Klas Verwijderen", null, panel_1, null);
		panel_1.setLayout(null);
		
		JLabel lblSelecteerDeKlas = new JLabel("Selecteer de klas om te verwijderen");
		lblSelecteerDeKlas.setBounds(10, 11, 171, 14);
		panel_1.add(lblSelecteerDeKlas);
		
		JComboBox comboBox = new JComboBox();
		comboBox.setModel(new DefaultComboBoxModel(new String[] {"Klas", "Klas", "Klas", "Klas", "Klas"}));
		comboBox.setBounds(191, 8, 198, 20);
		panel_1.add(comboBox);
		
		JButton btnKlasVerwijderen = new JButton("Klas Verwijderen");
		btnKlasVerwijderen.setBounds(10, 199, 200, 23);
		panel_1.add(btnKlasVerwijderen);
		
		JButton btnAnnuleren_1 = new JButton("Annuleren");
		btnAnnuleren_1.setBounds(220, 199, 200, 23);
		panel_1.add(btnAnnuleren_1);
		
		JPanel panel_2 = new JPanel();
		tabbedPane.addTab("Klas Wijzigen", null, panel_2, null);
		panel_2.setLayout(null);
		
		JLabel lblCohort = new JLabel("Cohort");
		lblCohort.setBounds(10, 11, 46, 14);
		panel_2.add(lblCohort);
		
		JLabel lblOpleidingnaam_1 = new JLabel("Opleidingnaam");
		lblOpleidingnaam_1.setBounds(10, 36, 85, 14);
		panel_2.add(lblOpleidingnaam_1);
		
		JLabel lblNiveau_1 = new JLabel("Niveau");
		lblNiveau_1.setBounds(10, 61, 46, 14);
		panel_2.add(lblNiveau_1);
		
		JLabel lblJaar_1 = new JLabel("Jaar");
		lblJaar_1.setBounds(10, 86, 46, 14);
		panel_2.add(lblJaar_1);
		
		JLabel lblMentor_1 = new JLabel("Mentor");
		lblMentor_1.setBounds(10, 111, 46, 14);
		panel_2.add(lblMentor_1);
		
		JButton btnNewButton_1 = new JButton("Klas wijzigen");
		btnNewButton_1.setBounds(10, 199, 200, 23);
		panel_2.add(btnNewButton_1);
		
		JButton btnAnnuleren_2 = new JButton("Annuleren");
		btnAnnuleren_2.setBounds(220, 199, 200, 23);
		panel_2.add(btnAnnuleren_2);
		
		textField_5 = new JTextField();
		textField_5.setBounds(105, 33, 120, 20);
		panel_2.add(textField_5);
		textField_5.setColumns(10);
		
		textField_6 = new JTextField();
		textField_6.setColumns(10);
		textField_6.setBounds(105, 8, 120, 20);
		panel_2.add(textField_6);
		
		textField_7 = new JTextField();
		textField_7.setColumns(10);
		textField_7.setBounds(105, 58, 120, 20);
		panel_2.add(textField_7);
		
		textField_8 = new JTextField();
		textField_8.setColumns(10);
		textField_8.setBounds(105, 83, 120, 20);
		panel_2.add(textField_8);
		
		textField_9 = new JTextField();
		textField_9.setColumns(10);
		textField_9.setBounds(105, 108, 120, 20);
		panel_2.add(textField_9);
	}
}
